import { View, Text, Image } from 'react-native'
import React, { useState, useEffect } from 'react'
import { router, useLocalSearchParams } from 'expo-router'
import Ionicons from '@expo/vector-icons/Ionicons';
import FoundItem, { FoundItemType } from '../found/foundDate';

export default function articleDetails() {
    const { id } = useLocalSearchParams()
    const data = FoundItem.find(item => item.id === Number(id)) as FoundItemType || {}
    return (
        <View>
            <View>
                <View>
                    <Ionicons name="close" size={26} color="#000000" onPress={() => router.back()} />
                    <View>
                        <Image source={{ uri: data.users.avatar }} />

                        <View>
                            <Text>{data.users.username}</Text>
                            <Text></Text>
                        </View>
                    </View>
                </View>
                <View>
                    <Text>关注</Text>
                    <Ionicons name="filter" size={26} color="#000000" onPress={() => router.back()} />
                </View>
            </View>
            <View>

            </View>
            <View>

            </View>
        </View>
    )
}

